package com.ruoyi.archive.controller;

import com.ruoyi.archive.service.ICompleteProcessService;
import com.ruoyi.archive.to.CompleteProcess;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: ruoyi
 * @description:
 * @author: yuxiang
 * @create: 2021-10-12 09:20
 */
@RestController
@RequestMapping("completeProcess")
public class CompleteProcessController {
    @Autowired
    private ICompleteProcessService completeProcessService;

    @PostMapping("/add")
    public AjaxResult addCompleteProcess(@RequestBody CompleteProcess completeProcess) {
        completeProcessService.addCompleteProcess(completeProcess);
        return AjaxResult.success();
    }
}
